package snowflake

import (
	"context"
	"gitee.com/kmyss/gf-ex/yscmd"
)

type FlagWorkIdBuilder struct {
	yscmd.FlagBuilderCore
}

func (b *FlagWorkIdBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx, group...)
	b.F.ConfigNodeName = configNodeName
	b.F.Long = "work-id"
	b.F.DefaultValue = 0
	b.F.Description = `
        设置工作ID只能在 0~3 之间`

}

func FlagWorkId(ctx context.Context) *yscmd.Flag {
	b := FlagWorkIdBuilder{}
	b.Init(ctx)
	return b.Flag()
}
